<div ng-controller="StoreCtrl" ng-init="payConfigAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/store/list">{{'store'|translate}}</a></li>
        <li><a href="#/store/config?store_id={{store.store_id}}">{{store.name}}</a></li>
        <li>{{currentWxapp.nick_name}}</li>
        <li>{{'支付配置' | translate}}</li>
    </ul>
    <div class="sui-row">
        <div class="span7">
            <form name="payConfigForm" novalidate ng-submit="payConfigAdd()">
                <div class="control-group">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付方法' |
                        translate}}:</label>
                    <div class="controls">
                        <store-paytype ng-model="payconfig.mch_type_id" stype="stype"> </store-paytype>
                        <!-- <label>
                            <input type="radio" name="mch_type_id" ng-model="payconfig.mch_type_id" ng-value="1" class="input-xlarge" required />普通商户 </label>
                        <label>
                            <input type="radio" name="mch_type_id" ng-model="payconfig.mch_type_id" ng-value="2" class="input-xlarge" required />特约商户 </label>
                        <label>
                            <input type="radio" name="mch_type_id" ng-model="payconfig.mch_type_id" ng-value="3" class="input-xlarge" required />手工转账支付 </label>
                        <label>
                            <input type="radio" name="mch_type_id" ng-model="payconfig.mch_type_id" ng-value="4" class="input-xlarge" required />澳洲皇家支付 </label>
                        <label>
                            <input type="radio" name="mch_type_id" ng-model="payconfig.mch_type_id" ng-value="5" class="input-xlarge" required />欧洲Yaband支付 </label>
                        <label>
                            <input type="radio" name="mch_type_id" ng-model="payconfig.mch_type_id" ng-value="6" class="input-xlarge" required />dahlpay支付 </label>
                        <label>
                            <input type="radio" name="mch_type_id" ng-model="payconfig.mch_type_id" ng-value="7" class="input-xlarge" required />supay支付 </label> -->
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==1 || payconfig.mch_type_id==2">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'支付商户名称' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="name" ng-model="payconfig.name" class="
                input-xlarge">
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==1" class="control-group">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'微信支付商户ID'
                        | translate}}:</label>
                    <div class="controls">
                        <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="
                input-xlarge">
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==1 || payconfig.mch_type_id==2 " class="control-group">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                        {{'微信支付appkey' | translate}}:</label>
                    <div class="controls">
                        <input type="text" name="appkey" ng-model="payconfig.appkey" class="
                input-xlarge">
                        <div class="sui-msg msg-tips msg-default msg-clear help-block">
                            <div class="msg-con">
                                <a href="https://pay.weixin.qq.com" target="_blank">https://pay.weixin.qq.com</a> --&gt;登陆商户号--&gt;账户中心--&gt;账户设置--&gt;API安全--&gt;设置秘钥
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==2" class="control-group">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                        {{'特约商户子商户ID' | translate}}:</label>
                    <div class="controls">
                        <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="
                input-xlarge">
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==1" class="control-group">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付证书公钥' |
                        translate}}:
                        <br />(apiclient_cert.pem)</label>
                    <div class="controls">
                        <textarea rows="5" ng-model="payconfig.pem_cert" class="input-xlarge" disabled="disabled"></textarea>
                        <uploaderpem ng-model="payconfig.pem_cert" id="file"></uploaderpem>
                        <div class="sui-msg msg-tips msg-default msg-clear help-block">
                            <div class="msg-con">
                                <a href="https://pay.weixin.qq.com" target="_blank">https://pay.weixin.qq.com</a> --&gt;登陆商户号--&gt;账户中心--&gt;账户设置--&gt;API安全--&gt;下载证书
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==1" class="control-group">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付证书私钥' |
                        translate}}:
                        <br />(apiclient_key.pem)</label>
                    <div class="controls">
                        <textarea rows="5" ng-model="payconfig.pem_key" class="input-xlarge" disabled="disabled"></textarea>
                        <uploaderpem ng-model="payconfig.pem_key" id="file1"></uploaderpem>
                        <div class="sui-msg msg-tips msg-default msg-clear help-block">
                            <div class="msg-con">
                                <a href="https://pay.weixin.qq.com" target="_blank">https://pay.weixin.qq.com</a> --&gt;登陆商户号--&gt;账户中心--&gt;账户设置--&gt;API安全--&gt;下载证书
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==3" class="control-group">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'收款二维码' |
                        translate}}:</label>
                    <div class="controls">
                        <div>
                            <!-- <wxattachmentlist ng-model="payconfig" wxappid="wxappid" mediaid="payconfig.media_id"></wxattachmentlist> -->
                            <img ng-src="{{payconfig.media_id}}" style="width:400px;height: 170px">
                            <br />
                        </div>
                        <div>
                            <attachment owner-id="1" owner-type="item" dhf-ng-model="payconfig.media_id" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF"></attachment>
                            <!--  <wx-attachment owner-id="attachs" dhf-ng-model="payconfig.media_id" xtype="mid" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF" wxappid="wxappid" xclass="sui-btn btn-small btn-success" setback="getlist(attach)"></wx-attachment> -->
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==4">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'partner_code' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【皇家支付：partner_code】（皇家支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'credential_code' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【皇家支付credential_code】（皇家支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <royal-currency ng-show="!updateType" ng-model="payconfig.media_id" dft="1"></royal-currency>
                            <royal-currency ng-show="updateType" ng-model="payconfig.media_id" stype="1"></royal-currency>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==5">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> MID:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【Yaband参数：MID】（Yaband支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> Token:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【Yaband参数：Token】（Yaband支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> User:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="
                        input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【Yaband参数：User】（Yaband支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <eur-currency ng-show="!updateType" ng-model="payconfig.media_id" dft="1"></eur-currency>
                            <eur-currency ng-show="updateType" ng-model="payconfig.media_id" stype="1"></eur-currency>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==6">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'商家编号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【dahlpay支付：商家编号】（dahlpay支付支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'密钥' |
                            translate}}:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【dahlpay支付:密钥】（dahlpay支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div ng-show="payconfig.mch_type_id==7">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'微信支付商户ID' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="
                            input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'recevice_id' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="
                            input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'私钥' |
                            translate}}:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <supay-currency ng-show="!updateType" ng-model="payconfig.media_id" dft="1"></supay-currency>
                            <supay-currency ng-show="updateType" ng-model="payconfig.media_id" stype="1"></supay-currency>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==8">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'partner_code' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【GMS支付：partner_code】（GMS支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'credential_code' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    填写【GMS支付credential_code】（GMS支付开通邮件中包含此参数）
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <gms-currency ng-show="!updateType" ng-model="payconfig.media_id" dft="1"></gms-currency>
                            <gms-currency ng-show="updateType" ng-model="payconfig.media_id" stype="1"></gms-currency>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==9">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'商户号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_idw" ng-model="payconfig.mch_id" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'支付证书私钥' | translate}}:
                            <br />(private.key)</label>
                        <div class="controls">
                            <textarea rows="5" ng-model="payconfig.pem_key" class="input-xlarge" disabled="disabled"></textarea>
                            <uploaderpem ng-model="payconfig.pem_key" id="file1"></uploaderpem>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'支付证书公钥' | translate}}:
                            <br />(hipopay_prod_public.key)</label>
                        <div class="controls">
                            <textarea rows="5" ng-model="payconfig.pem_cert" class="input-xlarge" disabled="disabled"></textarea>
                            <uploaderpem ng-model="payconfig.pem_cert" id="file"></uploaderpem>
                        </div>
                    </div>
                </div>
                <div class="control-group" ng-show="payconfig.mch_type_id==6 || payconfig.mch_type_id==9">
                    <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种' |
                        translate}}:</label>
                    <div class="controls">
                        <dahlpay-currency ng-show="!updateType" ng-model="payconfig.media_id" dft="1"></dahlpay-currency>
                        <dahlpay-currency ng-show="updateType" ng-model="payconfig.media_id" stype="1"></dahlpay-currency>
                        <div class="sui-msg msg-tips msg-default msg-clear help-block">
                            <div class="msg-con">
                                商品价格使用什么币种标价，这里选择相同的币种让顾客支付，同时与dahlpay确定开通这个币种的交易方式，选择错误会导致支付错误，后果自负。
                            </div>
                        </div>
                    </div>
                </div>
                <!-- //银联支付 -->
                <div ng-show="payconfig.mch_type_id==10">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'微信支付商户ID' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    微信支付商户ID
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'终端号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    终端号
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'密钥' |
                            translate}}:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'消息来源(msgSrc) '
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="pem_cert" ng-model="payconfig.pem_cert" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'来源编号(msgSrcId)'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="pem_key" ng-model="payconfig.pem_key" class="input-xlarge">
                        </div>
                    </div>
                </div>

                <!-- 新银联支付 -->
                <div ng-show="payconfig.mch_type_id==16">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'银联支付商户ID' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    银联支付商户ID
                                </div>
                                <s class="msg-icon"></s>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'终端号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    终端号
                                </div>
                                <s class="msg-icon"></s>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'密钥' |
                            translate}}:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                        </div>
                    </div>
                </div>

                <div ng-show="payconfig.mch_type_id==11">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'兆丰支付商户ID' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    兆丰支付商户ID
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'密钥' |
                            translate}}:</label>
                        <div class="controls">
                            <input type="text" name="appkey" ng-model="payconfig.appkey" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'终端号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    终端号
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <royal-currency ng-show="!updateType" ng-model="payconfig.media_id" dft="1"></royal-currency>
                            <royal-currency ng-show="updateType" ng-model="payconfig.media_id" stype="1"></royal-currency>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'备用支付商户ID'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="second_mch_id" ng-model="payconfig.second_mch_id" class="
                    input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'支付证书私钥' | translate}}:
                            <br />(apiclient_key.pem)</label>
                        <div class="controls">
                            <textarea rows="5" ng-model="payconfig.pem_key" class="input-xlarge" disabled="disabled"></textarea>
                            <uploaderpem ng-model="payconfig.pem_key" id="file1"></uploaderpem>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==12">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'账户' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'终端号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    终端号
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'私钥' | translate}}:
                            <br />(secureCode)</label>
                        <div class="controls">
                            <textarea rows="5" ng-model="payconfig.appkey" class="input-xlarge"></textarea>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <yh-currency ng-model="payconfig.media_id" dft="1"></yh-currency>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div ng-show="payconfig.mch_type_id==13">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'机构号' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="mch_id" ng-model="payconfig.mch_id" class="input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'商户号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商户号
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'密钥' | translate}}:
                            <br />(secureCode)</label>
                        <div class="controls">
                            <textarea rows="5" ng-model="payconfig.appkey" class="input-xlarge"></textarea>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <qcurepay-currency ng-model="payconfig.media_id" dft="1"></qcurepay-currency>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==14">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'会员号'
                            | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    会员号
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                            {{'密钥' | translate}}:
                            <br />(RSA秘钥压缩包中的public.key文件内容)</label>
                        <div class="controls">
                            <textarea rows="8" ng-model="payconfig.appkey" class="input-xlarge"></textarea>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'支付币种'
                            | translate}}:</label>
                        <div class="controls">
                            <xs-currency ng-model="payconfig.media_id">
                                </qcurepay-currency>
                                <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                    <div class="msg-con">
                                        商品价格使用什么币种标价，这里选择相同的币种让顾客支付，选择错误会导致支付错误，后果自负。
                                    </div>
                                </div>
                        </div>
                    </div>
                </div>
                <div ng-show="payconfig.mch_type_id==15">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'店铺密钥Key'
                                | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="sub_mch_id" ng-model="payconfig.sub_mch_id" class="input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    shopkey
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                                    {{'店铺Secret' | translate}}:
                                    <br />(secureCode)</label>
                        <div class="controls">
                            <textarea rows="8" ng-model="payconfig.appkey" class="input-xlarge"></textarea>
                        </div>
                    </div>
                </div>

                <!-- 备用支付参数 开始 -->
                <div ng-show="payconfig.mch_type_id==2 || payconfig.mch_type_id==10">
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b></label>
                        <div class="controls" style="color: #ff0000;">
                            如果需要红包提现功能，需要配置以下参数：
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'备用支付商户ID'
                                | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="second_mch_id" ng-model="payconfig.second_mch_id" class="
                        input-xlarge">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b>
                                {{'备用支付appkey' | translate}}:</label>
                        <div class="controls">
                            <input type="text" name="second_appkey" ng-model="payconfig.second_appkey" class="
                        input-xlarge">
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    <a href="https://pay.weixin.qq.com" target="_blank">https://pay.weixin.qq.com</a> --&gt;登陆商户号--&gt;账户中心--&gt;账户设置--&gt;API安全--&gt;设置秘钥
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'备用支付证书公钥'
                                | translate}}:
                                <br />(apiclient_cert.pem)</label>
                        <div class="controls">
                            <textarea rows="5" ng-model="payconfig.second_pem_cert" class="input-xlarge" disabled="disabled"></textarea>
                            <uploaderpem ng-model="payconfig.second_pem_cert" id="file2"></uploaderpem>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    <a href="https://pay.weixin.qq.com" target="_blank">https://pay.weixin.qq.com</a> --&gt;登陆商户号--&gt;账户中心--&gt;账户设置--&gt;API安全--&gt;下载证书
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label v-top" style="width: 150px;"><b style="color: #f00;">*</b> {{'备用支付证书私钥'
                                | translate}}:
                                <br />(apiclient_key.pem)</label>
                        <div class="controls">
                            <textarea rows="5" ng-model="payconfig.second_pem_key" class="input-xlarge" disabled="disabled"></textarea>
                            <uploaderpem ng-model="payconfig.second_pem_key" id="file3"></uploaderpem>
                            <div class="sui-msg msg-tips msg-default msg-clear help-block">
                                <div class="msg-con">
                                    <a href="https://pay.weixin.qq.com" target="_blank">https://pay.weixin.qq.com</a> --&gt;登陆商户号--&gt;账户中心--&gt;账户设置--&gt;API安全--&gt;下载证书
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 备用支付参数 结束 -->

                <!-- 完成 -->
                <div class="control-group">
                    <label class="control-label" style="width: 150px;"></label>
                    <div class="controls">
                        <button type="submit" id="submit" class="sui-btn btn-primary" ng-disabled="!payConfigForm.$valid && !payconfigValid()">
                            <span>{{'save'|translate}}</span>
                        </button>
                    </div>
                </div>
            </form>
        </div>
        <div style="padding: 20px 20px;width: 300px;border-left: 1px solid #ccc;" class="span1">
            <img src="/web/dhfshop/app/images/gcf-tzm.jpeg" style="display: block;">
            <p>没有开通微信支付，请扫描微信扫描上面二维码自助开通</p>
        </div>
    </div>
</div>